/* mixins */

@import "src/mixins.scss";
.animate-active {
    animation: all-animate 0.5s linear;
    -webkit-animation: all-animate 0.5s linear;
    @keyframes all-animate {
        0% {
            padding-top: 100vh;
            opacity: 0.3;
        }
        100% {
            padding-top: 0;
            left: 100%;
            opacity: 1;
        }
    }
}

.wrap {
    height: 100vh;
    // background-color: #131428;
    overflow-y: scroll;
    .content {
        min-height: 100vh;
        background-color: #131428;

    }
  }
  .content_active {
      background: url(src/assets/img/end-year/common/bg.png) center top/100% no-repeat;
  }

// .header-other {
//   height: 8.12rem;
//   padding-top: 7.26rem;
// }
.player {
    width: 100%;
    video {
        z-index: 1000;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        object-fit: fill;
    }
}

header {
    box-sizing: border-box;
    height: 8.1rem;
    position: relative;
    .headvideo {
        width: 100%;
        height: 11.98rem;
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;
        video {
            width: 100%;
            z-index: 999;
            object-fit: fill;
        }
    }
    .refash {
        width: 0.8rem;
        height: 0.5rem;
        position: fixed;
        top: 2.16rem;
        right: 0;
        z-index: 999;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .backactivity {
        width: 0.8rem;
        height: 0.76rem;
        position: fixed;
        top: 0.24rem;
        left: 0.16rem;
        z-index: 999;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .listward_fix {
        width: 1.26rem;
        height: 0.5rem;
        position: fixed;
        top: 1.5rem;
        right: 0;
        z-index: 999;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .reword_fix {
        width: 1.14rem;
        height: 1.1rem;
        position: fixed;
        top: 4.78rem;
        left: 0.16rem;
        z-index: 999;
        img {
            width: 100%;
            height: 100%;
            // object-fit: contain;
        }
    }
    .diantang_fix {
        width: 1.54rem;
        height: 1.18rem;
        position: fixed;
        top: 6.24rem;
        left: 0;
        z-index: 999;
        img {
            width: 100%;
            height: 100%;
            // object-fit: contain;
        }
    }
    // 倒计时
    .countdown {
        width: 100%;
        @include flex_dis();
        @include flex(align-items, center);
        @include flex(flex-direction, column);
        >div {
            width: 100%;
            @include flex_dis();
            @include flex(align-items, center);
            @include flex(justify-content, center);
            >span {
                font-size: 0.24rem;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #c4cffd;
                margin-left: 0.08rem;
                margin-right: 0.02rem;
            }
        }
        .hours,
        .fen,
        .miao,
        .hours {
            margin-left: 0.04rem;
            box-sizing: border-box;
            @include flex_dis();
            @include flex(justify-content, center);
            @include flex(align-items, center);
            width: 0.48rem;
            height: 0.48rem;
            background: url(src/assets/img/year/reword/time_bgs.png) center center/100% no-repeat;
            >p {
                font-size: 0.26rem;
                font-family: PingFangSC-Semibold, PingFang SC;
                font-weight: 600;
                color: #ffffff;
            }
        }
    }
}

.alert-anmation {
    animation: pop-in;
    animation-duration: 0.3s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
    @keyframes pop-in {
        0% {
            transform: scale(0.1, 0.1);
            opacity: 0.1;
        }
        80% {
            transform: scale(1.1, 1.1);
        }
        100% {
            transform: scale(1, 1);
            opacity: 1;
        }
    }
}

.animate-active_zy {
    animation: pop-in 0.3s both ease-out, zy 2s linear 0.3s;
    -webkit-animation: pop-in 0.3s both ease-out, zy 2s linear 0.3s;
    @keyframes pop-in {
        0% {
            transform: scale(0.1, 0.1);
            opacity: 0.1;
        }
        80% {
            transform: scale(1.1, 1.1);
        }
        100% {
            transform: scale(1, 1);
            opacity: 1;
        }
    }
    @keyframes zy {
        10% {
            transform: rotate(10deg);
        }
        20% {
            transform: rotate(-10deg);
        }
        30% {
            transform: rotate(5deg);
        }
        40% {
            transform: rotate(-5deg);
        }
        50%,
        100% {
            transform: rotate(0deg);
        }
    }
}

.roomNav {
    width: 7.3rem;
    margin-left: 0.1rem;
    position: relative;
    z-index: 1;
    // top: 7.6rem; /* 8.1rem - .5rem */
    @include flex_dis();
    @include flex(justify-content, center);
    @include flex(align-items, flex-end);
    p {
        width: 1.36rem;
        height: 1.68rem;
        @include flex_dis();
        @include flex(justify-content, center);
        @include flex(align-items, center);
        margin: 0 0.02rem;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .active {
        width: 1.66rem;
        height: 2.08rem;
    }
}

.ac_content {
    width: 100%;
    // position: absolute;
    box-sizing: border-box;
    // top: 10.1rem; /*10.6rem -.5rem */

    &.welfare-on{
         top: 8.26rem;
    }

    // background: linear-gradient(to bottom,rgba(19,20,40,.5), .1rem,#131428 ) ; /* 避免超出底图背景 */
}

.accontentfuli {
    position: absolute;
    top: 8.1rem;
}

footer {
    text-align: center;
    @include flex_dis();
    @include flex(justify-content, center);
    @include flex(align-items, center);
    font-size: 0.2rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7e7e86;
    line-height: 0.28rem;
    color: #c4cffd;
    padding-bottom: 1.8rem;
    padding-top: 0.4rem;
    .tips>div:not(:last-of-type) {
        margin-bottom: 0.06rem;
    }
}

.dialog {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    @include flex_dis();
    @include flex(justify-content, center);
    @include flex(align-items, flex-start);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    .contain {
        height: 85%;
    }
}

.dialog_box {
    @include flex(align-items, center);
}

.reword_dia {
    width: 6.34rem;
    height: 7.54rem;
    background: url(src/assets/img/year/reword_dia_bg.png) center center/100% no-repeat;
    position: relative;
    @include flex_dis();
    @include flex(flex-direction, column);
    @include flex(align-items, center);
    .closes {
        position: absolute;
        width: 0.49rem;
        height: 0.48rem;
        background: url(src/assets/img/year/closes.png) center center/100% no-repeat;
        right: 0.3rem;
        top: 0.92rem;
    }
    >ul {
        width: 100%;
        margin-top: 1.84rem;
        @include flex_dis();
        @include flex(justify-content, center);
        @include flex(flex-wrap, wrap);
        li {
            width: 1.52rem;
            height: 1.48rem;
            background: url(src/assets/img/year/li_dia.png) center center/100% no-repeat;
            @include flex_dis();
            @include flex(justify-content, center);
            @include flex(align-items, center);
            position: relative;
            >img {
                width: 1.26rem;
                height: 1.26rem;
            }
            .btm_p {
                position: absolute;
                bottom: -0.1rem;
                left: 0.12rem;
                width: 1.28rem;
                height: 0.48rem;
            }
            .wan_icon {
                position: absolute;
                right: 0;
                top: 0.06rem;
                width: 0.6rem;
                height: 0.6rem;
                background: url(src/assets/img/year/wan_icon.png) center center/100% no-repeat;
            }
        }
    }
    .btm_btn {
        margin-top: 0.58rem;
        img {
            width: 3.14rem;
            height: 1.16rem;
        }
    }
}

.sign_box {
    width: 7.5rem;
    height: 8.64rem;
    background: url(src/assets/img/year/sign_box_bg.png) center center/100% no-repeat;
    @include flex_dis();
    @include flex(flex-direction, column);
    @include flex(align-items, center);
    >div {
        margin-top: 2.78rem;
        width: 4.98rem;
        height: 4.04rem;
        background: url(src/assets/img/year/sign_box_bg1.png) center center/100% no-repeat;
        @include flex_dis();
        @include flex(flex-direction, column);
        @include flex(align-items, center);
        >img {
            width: 1.9rem;
            height: 0.46rem;
            margin-top: 0.6rem;
        }
        p {
            margin-top: 0.4rem;
            font-size: 0.28rem;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #5810b8;
            line-height: 0.4rem;
            strong {
                color: #e433a5;
            }
        }
        >div {
            padding: 0.18rem 0.72rem;
            box-sizing: border-box;
            background: linear-gradient(180deg, #f446b4 0%, #ff7ecf 100%);
            border-radius: 0.37rem;
            @include flex_dis();
            @include flex(justify-content, center);
            @include flex(align-items, center);
            margin-top: 0.4rem;
            span {
                font-size: 0.28rem;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #ffffff;
            }
        }
    }
}
